﻿
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[sproc_Flow_AddFlow_V2]') AND type in (N'P', N'PC'))
    DROP PROCEDURE [dbo].[sproc_Flow_AddFlow_V2];
GO
CREATE PROCEDURE [dbo].[sproc_Flow_AddFlow_V2]
    @FlowName   nvarchar(300),
    @FlowRemark nvarchar(max),
    @Builder    nvarchar(300),
    @StyleID    int
AS
BEGIN
SET NOCOUNT ON;

INSERT INTO dbo.uds_flow (flow_name, remark, builder, build_date, Style_ID) VALUES(@FlowName, @FlowRemark, @Builder, getdate(), @StyleID);
RETURN @@identity;

END
GO